Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-22874][PYSPARK][SQL] Modify checking pandas version to use LooseVersion. #20054

Closed
wants to merge 4 commits into from

Conversation

ueshin
Copy link
Member

@ueshin ueshin commented Dec 22, 2017

What changes were proposed in this pull request?

Currently we check pandas version by capturing if ImportError for the specific imports is raised or not but we can compare LooseVersion of the version strings as the same as we're checking pyarrow version.

How was this patch tested?

Existing tests.

@SparkQA
Copy link

SparkQA commented Dec 22, 2017

Test build #85303 has finished for PR 20054 at commit 9f67936.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Dec 22, 2017

Test build #85304 has finished for PR 20054 at commit 21d2d49.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Dec 22, 2017

Test build #85305 has finished for PR 20054 at commit 677f6bc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -112,6 +112,15 @@ def toJArray(gateway, jtype, arr):
return jarr


def _require_minimum_pandas_version():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh. BTW, I think we can just name it _require_minimum_pandas_version -> require_minimum_pandas_version and _require_minimum_pyarrow_version -> require_minimum_pyarrow_version. It's fine as is too to me.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. I'll update them. Thanks!

@SparkQA
Copy link

SparkQA commented Dec 22, 2017

Test build #85306 has finished for PR 20054 at commit 7ef6887.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

Still LGTM

@HyukjinKwon
Copy link
Member

Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants